package com.hsnn.medstgmini.base.dict.model; 	

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 通用名实体类
 * @author lidongfei@njhsnn
 * 2015.11.09
 */

@Entity
@Table(name="dic_drugname")

public class DicDrugname implements java.io.Serializable {
	//Fields
	private static final long serialVersionUID = -8292120610536826623L;
	private String drugnameCode;//药品通用名编码
	private String drugName;//药品名称
	private String status;//状态
	private String updDatetime;//更新时间
    private String updUser;//更新人
    private String sortId;//排序id
   //Constructors 
    
   /** default constructor */
    public DicDrugname(){
    }
    	/** minimal constructor */
    public DicDrugname(String drugnameCode,String drugName){
    	this.drugnameCode = drugnameCode;
    	this.drugName = drugName;	
    }
    	/** full constructor */
    public DicDrugname(String drugnameCode,String drugName,String status,String updDatetime,String updUser, String sortId){
    	this.drugnameCode = drugnameCode;
    	this.drugName = drugName;
    	this.status = status;
    	this.updDatetime = updDatetime;
    	this.updUser = updUser;
    	this.sortId =sortId;
    }
    // Property accessors
    @Id
    @GenericGenerator(name="generator", strategy="uuid")
    @GeneratedValue(generator="generator")
    
    @Column(name="drugname_code", nullable=false, length=10)

    public String getDrugnameCode() {
        return this.drugnameCode;
    }
    
    public void setDrugnameCode(String drugnameCode) {
        this.drugnameCode = drugnameCode;
    }
    @Column(name="drug_name", nullable=false, length=100)

    public String getDrugName() {
        return this.drugName;
    }
    
    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }
    @Column(name="status")

    public String getStatus() {
        return this.status;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    @Column(name="upd_datetime", length=19)

    public String getUpdDatetime() {
        return this.updDatetime;
    }
    
    public void setUpdDatetime(String updDatetime) {
        this.updDatetime = updDatetime;
    }
    
    @Column(name="upd_user", length=36)

    public String getUpdUser() {
        return this.updUser;
    }
    
    public void setUpdUser(String updUser) {
        this.updUser = updUser;
    }
    
    @Column(name="sort_id")

    public String getSortId() {
        return this.sortId;
    }
    
    public void setSortId(String sortId) {
        this.sortId = sortId;
    }
}

    
    

